﻿using IntermediateDemo;
using Microsoft.SemanticKernel;
using Share;

var kernel = Kernel.CreateBuilder()
     .AddOpenAIChatCompletion(
    modelId: "gpt-3.5-turbo",
    apiKey: "sk-9gH1lRVZemdh4eStDMJllCSLLt9VTq4ls18orr",
    httpClient: new HttpClient(new OpenAIHttpClientHandler("https://api.token-ai.cn/")))
    .Build();

// 文本Prompt
//await PlainTextPrompt.PlainTextAsync(kernel);

// 安全输入Prompt
//await InputPrompt.SafeInputVariableAsync(kernel);

// 信任聊天提示符中的所有内容
await TrustedPrompt.TrustedTemplateAsync(kernel);